package at.fhooe.mcm.logic.sensors.events;

import at.fhooe.mcm.logic.event.Event;
import at.fhooe.mcm.logic.event.EventType;

public class SensorChangedEvent extends Event
{

	private static final long		serialVersionUID	= -1771208186478220160L;
	public static final EventType	TYPE				= new EventType("SensorChanged");

	private String					m_sensorID;
	private String					m_sensorType;
	private String					m_sensorName;
	private boolean					m_isPublic;
	private boolean					m_isPull;
	private int						m_updatePeriod;

	public SensorChangedEvent(String _sensorID, String _sensorType, String _sensorName, boolean _isPublic,
			boolean _isPull, int _updatePeriod)
	{
		m_sensorID = _sensorID;
		m_sensorType = _sensorType;
		m_sensorName = _sensorName;
		m_isPublic = _isPublic;
		m_isPull = _isPull;
		m_updatePeriod = _updatePeriod;
	}

	@Override
	public EventType getType()
	{
		return TYPE;
	}

	public String getSensorID()
	{
		return m_sensorID;
	}

	public String getEntityType()
	{
		return m_sensorType;
	}

	public String getName()
	{
		return m_sensorName;
	}

	public boolean isPull()
	{
		return m_isPull;
	}

	public boolean isPublic()
	{
		return m_isPublic;
	}

	public int getUpdatePeriod()
	{
		return m_updatePeriod;
	}

}
